package cn.edu.sdjzu.xg23.kcsj01_backend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



/**
 * @author 张烁瑜
 * @Date 2025/5/22 18:33
 */
@AllArgsConstructor
@NoArgsConstructor

@Data
public class EmployeeAssPaper {
    private Long id;            // 主键ID
    @JsonIgnore
    private Paper paper;       // 关联论文，外键
    private boolean isCorrespondingAuthor;
    private Employee employee;    // 关联员工，外键
    private Integer position;   // 位次
    public  EmployeeAssPaper(Paper paper, Employee employee, Integer position) {
        this.paper = paper;
        this.employee = employee;
         this.position = position;

    }

}

